<script>
	//var currentMenu = '${currentMenu!'dashBoard'}';dashBoard是可以过滤menu id有dashBoard的就不管
	var currentMenu = '${currentMenu}';
	var arr = currentMenu.split("-");

	var menusArr = $('li[id^=menu]');
	for (var m = 0; m < menusArr.length; m++) {
		var className = menusArr[m].className;
		if (className != "") {
			$("#" + menusArr[m].id).removeClass(className);
		}
	}

	var menuLevel = arr.length;
	if (menuLevel > 1) {
		for (var i = 0; i < menuLevel; i++) {

			if (i == (menuLevel - 1)) {
				$("#" + arr[menuLevel - 1]).addClass("active");
			} else {
				$("#" + arr[i]).addClass("active open");
			}
		}
	} else {
		$("#" + arr).addClass("active");
	}
</script>